import {
  CALL,
  SENDMESSAGE,
  CHAT,
  CHAT_REQUEST,
  CHAT_SUCCESS,
  CHAT_FAILURE,
  CLOSE,
  INIT
} from "./actionTypes";

import makeActionCreator from "@utils/makeActionCreator";

export const call = makeActionCreator(CALL, "data");
export const chat = makeActionCreator(CHAT, "data");
export const chatRquest = makeActionCreator(CHAT_REQUEST, "data");
export const chatSuccess = makeActionCreator(CHAT_SUCCESS, "data");
export const chatFailure = makeActionCreator(CHAT_FAILURE, "data");
export const close = makeActionCreator(CLOSE);
export const sendMessage = makeActionCreator(SENDMESSAGE, "data");
export const init = makeActionCreator(INIT, "data");
